package com.fangmao.a20_gradle;

import android.app.Activity;
import android.graphics.Color;
import android.view.View;
import android.view.ViewGroup;

/**
 * @ProjectName: wman
 * @Package: com.fangmao.a20_gradle
 * @ClassName: BuildTypeUtils
 * @Description: java类作用描述
 * @Author: wman
 * @CreateDate: 2020/1/16 14:52
 * @UpdateUser: 更新者
 * @UpdateDate: 2020/1/16 14:52
 * @UpdateRemark: 更新说明
 * @Version: 1.0
 */
public class BuildTypeUtils {
    public static void drawBadge(Activity activity) {
        ViewGroup decorView = (ViewGroup) activity.getWindow().getDecorView();
        View badge = new View(activity);
        badge.setBackgroundColor(Color.RED);
        decorView.addView(badge, 200, 200);
    }
}
